/*
	节流
*/
const throttle =(fn,delay)=> {
    let timerout
    return function () {
      let args = arguments
      let self = this
      if (timerout) return
      timerout = setTimeout(() => {
        fn.apply(self, args)
        timerout = null
      }, delay);
    }
  }

  export default  throttle
